package flc.ast.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import flc.ast.R;
import flc.ast.bean.TransferTabBean;
import stark.common.basic.adaptermutil.StkProviderMultiAdapter;
import stark.common.basic.adaptermutil.StkSingleSpanProvider;

public class DocumentScanAdapter extends StkProviderMultiAdapter<Integer> {

    public DocumentScanAdapter() {
        addItemProvider(new StkSingleSpanProvider<>(76));
        addItemProvider(new DocumentScanProvider());
    }

    private class DocumentScanProvider extends BaseItemProvider<Integer> {
        @Override
        public int getItemViewType() {
            return StkProviderMultiAdapter.TYPE_VIEW;
        }

        @Override
        public int getLayoutId() {
            return R.layout.item_document_scan;
        }

        @Override
        public void convert(@NonNull BaseViewHolder baseViewHolder, Integer bean) {
            baseViewHolder.setImageResource(R.id.ivDocumentScanItemImg, bean);
        }
    }

}
